<template>
  <div class="right-box">
    <div class="right-box-form">
      <LoginForm v-if="isLoginForm" />
      <FindPwd v-else />
    </div>
  </div>
</template>

<script lang="ts" setup>
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import LoginForm from './LoginForm.vue';
import FindPwd from './FindPwd.vue';
const route = useRoute();
const isLoginForm = computed(() => {
  return !route.query.forget;
});
</script>

<style lang="scss" scoped>
.right-box {
  width: 462px;
  height: 100%;
  display: flex;
  align-items: center;
  .right-box-form {
    background: #ffffff;
    box-shadow: 0px 0px 24px 0px rgba(51, 51, 51, 0.08);
    border-radius: 12px;
    padding: 0 50px;
    margin-left: -28px;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
  }
  :deep(h3) {
    margin: 0;
    margin-bottom: 39px;
    line-height: 24px;
    font-size: 24px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: #333;
    text-align: center;
  }
}
</style>
